from django.urls import path
from .views import *
from rest_framework.routers import DefaultRouter  # 默认路由器

urlpatterns = [
]

# 创建路由器
router = DefaultRouter()
# 注册路由器
router.register('label', LabelViewSet)  # 标签
router.register('topics', TopicViewSet)  # 题目
# 路由添加至urlpatterns列表当中
urlpatterns += router.urls
